﻿using System;
using System.Diagnostics;
using System.DirectoryServices;

namespace uTILLIty.ADExtractor.Core.Exporters
{
	public interface ISearchResultExporter<T>
	{
		event EventHandler<LogEventArgs> LogMessage;
		void Export(QueryInformation query, SearchResultCollection searchResults, T configuration);
	}

	public class LogEventArgs : EventArgs
	{
		public LogEventArgs(TraceEventType severity, string message)
		{
			Severity = severity;
			Message = message;
		}

		public string Message { get; set; }
		public string DebugInformation { get; set; }
		public TraceEventType Severity { get; set; }
	}
}